﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1> <a class="aui-btn aui-pull-right" tapmode="tapmode" onClick="openClub()"> <em class="aui-iconfont aui-icon-menu"></em> </a> 所有账户信息 </h1>
    </header>
    <div class="aui-content aui-margin-b-15">
        <table class="table">
            <tr>
                <th>账户</th>
                <!--<th>Password</th>-->
                <th>类型</th>
                <th>留言</th>
                <th>创建时间</th>
                <th>执行操作</th>
            </tr>
            @model IEnumerable<Account_password>

                @foreach (var item in Model)
                {
                    <tr>
                        <td>@Html.DisplayFor(modelItem => item.account)</td>
                        <!-- <td>******</td>at Html.DisplayFor(modelItem => item.password)-->
                        @switch (item.type)
                        {
                            case "0":
                                <td>黑名单</td>
                                break;
                            case "1":
                                <td>患者</td>
                                break;
                            case "2":
                                <td>医生</td>
                                break;
                            case "3":
                                <td>管理员</td>
                                break;

                        }

                        <td>@Html.DisplayFor(modelItem => item.message)</td>
                        <td>@Html.DisplayFor(modelItem => item.createtime)</td>
                        <td><a href="/Vip/aafd48425d67bcb0?account=@item.account">修改</a><!--url传值-->
                    </tr>
                }
            </table>

        </div>

        <div class="aui-list-item-inner">
            <a href="/Admin/Index"><p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回主界面</div></p></a>
        </div>

    </body>
</html>

<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>
